SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO
CREATE PROCEDURE [dbo].[paObtenerValoresCampoDeDocumento] 

@IdTrackingDePasos INT

AS
SET NOCOUNT ON
SELECT VC.IdValorCampoFormulario, VC.Documento, VC.CampoDeFormulario, VC.Valor, VC.EsNulo 
FROM tb_ValoresCampoDeDocumento VC
INNER JOIN tb_TrackingDePasos TP ON TP.Documento = VC.Documento
WHERE TP.IdTrackingPasos = @IdTrackingDePasos
GO
GRANT EXECUTE ON  [dbo].[paObtenerValoresCampoDeDocumento] TO [GestionDeDocumentos]
GRANT EXECUTE ON  [dbo].[paObtenerValoresCampoDeDocumento] TO [SoloVer]
GO
